package com.youshang520i.nacosserviceprovider.controller;

import com.youshang520i.nacosserviceprovider.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author youshang
 */
@RestController
public class ProviderController {

    @Autowired
    private ProviderService providerService;

    @GetMapping("/index/{str}")
    public String index(@PathVariable("str") String str){
        return providerService.index(str);
    }
}
